package lab02.test36;

public class Postgraduate extends Student {
    @Override
    public double Average() {
            if (super.Average() >= 90) {
                System.out.print("优秀");
            } else if (super.Average() >= 80 && super.Average() < 90) {
                System.out.print("良好");
            } else if (super.Average() >= 70 && super.Average() < 80) {
                System.out.print("一般");
            } else if (super.Average() >= 60 && super.Average() < 70) {
                System.out.print("及格");
            } else if (super.Average() < 60) {
                System.out.print("不及格");
            }
            return super.Average();
    }

    Postgraduate() {
        super();
    }

    Postgraduate(String name, String sclass, double chinese, double math, double computer) {
        super(name, sclass, chinese, math, computer);
    }
}
